<?php
namespace Modules\Admin\Model\Data;

use Modules\Admin\Model\Dao\Db\Visit\Log as DaoDbVisitLog;

class Visitlog {

    /**
     * 添加一条纪录
     * @return bool|int
     */
    public function add() {
        $ret = (new DaoDbVisitLog())->add();
        return $ret;

    }

    /**
     * 查询获取列表数据源
     * @param $uname
     * @param $controller
     * @param $time_start
     * @param $time_end
     * @return array
     */
    public function getDataTable($uname, $controller, $time_start, $time_end) {
        $ret = (new DaoDbVisitLog())->getDataTable($uname, $controller, $time_start, $time_end);
        return $ret;
    }
}
